package com.moolng.controller;

import com.moolng.feign.service01.IndexControllerFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 李权
 * @description
 * @date 2021/1/6 18:45
 */
@RestController
public class MyIndexController {
    
    @Autowired
    IndexControllerFeign indexControllerFeign;
    
    @GetMapping(value = "/echo/{str}")
    public String echo(@PathVariable String str) {
        System.out.println("===>" + str);
        return indexControllerFeign.index(str);
    }
    
}
